package com.twu.biblioteca;


import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class BibliotecaApp  {
    public static void main(String [] args){
        PrintStream printStream = new PrintStream(System.out);
        Scanner scanner = new Scanner(System.in);
        User user = new User("Steven","stevenndaye@thoughtworks.com","0767897061","111-1111","password",false);
        Library library = new Library(printStream,scanner,user);

        library.addBook(new Book("TDD", true));
        library.addBook(new Book("TDD v2", true));
        library.addBook(new Book("TDD v3", true));

        library.addMovie(new Movie("Jet Li", 1900, "Chris Reade", 0));
        library.addMovie(new Movie("Jackie Chan", 1901, "Musa Baloyi", 0));
        library.addMovie(new Movie("Fearless", 1902, "Steven Ndaye", 0));
        library.addMovie(new Movie("Cyborg", 1903, "'Wole", 0));
        library.addMovie(new Movie("Terminator", 1904, "Patrick Turkey", 0));

        library.welcomeMessage();
        library.menuOptions();
        library.validateCustomerChoice();

    }

}
